package com.e_manager.soft.emanager.resultMsg;

import java.io.Serializable;

/**
 * @author : lip[lip4051@163.com]
 * @create : 2018/3/13 0013 下午 3:44
 */
public class ResultInfo<T> implements Serializable {
    private String msg ;
    private int code ;
    private T data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public ResultInfo(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    public ResultInfo(T data) {
        this.data = data;
    }

    public ResultInfo() {
    }
}
